package excel.task;



import cn.xueden.common.core.context.RequestContext;

import java.util.List;

public class TaskVOBuilder {

    public static <V> TaskVO<V> newInstance(RequestContext context, Long taskId, String serialNo, String taskName,
                                            String fileName, List<V> data, Class<V> clazz) {
        TaskVO<V> param = new TaskVO<V>();
        param.setClazz(clazz);
        param.setContext(context);
        param.setFileName(fileName);
        param.setSerialNo(serialNo);
        param.setTaskId(taskId);
        param.setTaskName(taskName);
        param.setData(data);
        return param;
    }
}
